From 06b28a610b07c1a30849195e538bc85da3623faf Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Dec 2015 15:10:08 -0500 Subject: [PATCH] flowbox: Don't render focus erroneously The gadget render function should only return TRUE if the widget has the focus, and wants it rendered. --- gtk/gtkflowbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index 2a1baac730..018804dd74 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -2767,7 +2767,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS cairo_restore (cr); } - return TRUE; + return gtk_widget_has_visible_focus (widget); } /* Autoscrolling {{{3 */ -- 2.30.2